package com.kexuexiong.demo.bear.common.config;

import com.yomahub.liteflow.thread.ExecutorBuilder;

import java.util.concurrent.*;

public class LiteFlowThreadBuilder implements ExecutorBuilder {
    @Override
    public ExecutorService buildExecutor() {
        return new ThreadPoolExecutor(5, 5, 10, TimeUnit.SECONDS, new LinkedBlockingQueue<>(20));
    }
}
